package com.jumlabs.entities.peopleandorganizations;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
/***
 * 
 * @author Otto Giron
 *
 */
@Entity
public class Gender implements  Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6117337137571600870L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long id;
	
	private String description;
	
	@OneToMany(mappedBy="gender")
	private List<Person> persons;
	
	public Long getId() {
		return id;
	}	
	

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}



	public List<Person> getPersons() {
		return persons;
	}



	public void setPersons(List<Person> persons) {
		this.persons = persons;
	}
	
	
}
